/***************************************************************************************************
 * 搜索项配置：
 * alias 挂载搜索接口对应字段
 * name 现在的搜索项提示
 * type 搜索项控件类型select（选择器）、input（输入框）、datetime（日期选择）、dialog（外部弹框）、tree（树形选择器）
 ***************************************************************************************************/

/**
 * 搜索 选择器配置
 */
export const INDEX_SEARCH_SELECT_OPTIONS_CONFIG = {
  status: [
    
    //状态(查询条件). ENABLE: 已审核, REJECT: 拒绝, DISABLE: 未审核(禁用)

    {'value': null, 'label': '全部'},
    {'value': 'DISABLE', 'label': '未审核'},
    {'value': 'ENABLE', 'label': '已审核'},
    {'value': 'REJECT', 'label': '未通过'}
  ],


}
/**
 * 搜索配置
 * @type {Array}
 */
export const INDEX_SEARCH_CONFIG = [

  {alias: 'name', name: '请输入姓名或身份证号', type: 'input'},

]

/***
 * 搜索结果 操作列配置
 * @type {Array}
 */
const ACTION_SEARCH_OPTIONS = [
  {alias: 'edit', name: '编辑', type: 'primary'},
]


/***
 * 搜索结果列配置
 * @type {Array}
 */
export const INDEX_SEARCH_RESULT_ITEMS = [
  {alias: 'username', name: '姓名', width: '120px'},
  {alias: 'baseName', name: '基地名称', width: '120px'},
  {alias: 'idCard', name: '身份证号', width: '120px'},
  {alias: 'phone', name: '联系电话', width: '120px'},
  {alias: 'isPostpone', name: '是否延期', width: '110px' ,type:'tag'},
  {alias: 'type', name: '还款类型', width: '110px',type:'tag'},
  {alias: 'fangkuanTime', name: '放款时间', width: '150px'},
  {alias: 'fangkuanVoucher', name: '放款凭证', width: '150px'},
  {alias: 'contract', name: '查看合同', width: '150px',type:'click'},
  {name: '操作', width: '100px', type: 'action', options: ACTION_SEARCH_OPTIONS}
]

/***
 * 搜索结果列配置
 * @type {Array}
 */
export const JYSJ_INDEX_SEARCH_RESULT_ITEMS = [
  {alias: 'username', name: '姓名', width: '120px'},
  {alias: 'baseName', name: '基地名称', width: '120px'},
  {alias: 'idCard', name: '身份证号', width: '120px'},
  {alias: 'phone', name: '联系电话', width: '120px'},
  {alias: 'isPostpone', name: '是否延期', width: '110px' ,type:'tag'},
  // {alias: 'status', name: '审核状态', width: '110px'},
  {alias: 'type', name: '还款类型', width: '110px',type:'tag'},
  {alias: 'fangkuanTime', name: '放款时间', width: '150px'},
  {alias: 'fangkuanVoucher', name: '放款凭证', width: '150px'},
  {alias: 'contract', name: '查看合同', width: '150px',type:'click'},
  {name: '操作', width: '100px', type: 'action', options: ACTION_SEARCH_OPTIONS}
]

/***
 * 详情 结果列配置
 * @type {Array}
 */
export const DETAILS_INDEX_SEARCH_RESULT_ITEMS = [
  {alias: 'periods', name: '期数', width: '120px'},
  {alias: 'dueTime', name: '还款时间', width: '120px'},
  {alias: 'dueStatus', name: '还款情况', width: '120px'},
  {alias: 'createMan', name: '操作人', width: '110px' },
]

